﻿using Terraria;
using Terraria.ModLoader;

namespace HardcoreGame.Common.GlobalProjectiles
{
    public class MinionProjectile : GlobalProjectile
    {
        public override bool InstancePerEntity => true;
        public bool skeletonSniper = false;
        public override void ModifyHitNPC(Projectile projectile, NPC target, ref NPC.HitModifiers modifiers)
        {
            if (skeletonSniper)
            {
                if (Main.myPlayer == projectile.owner && Main.player[projectile.owner].MinionAttackTargetNPC == target.whoAmI)
                {
                    modifiers.FinalDamage *= 1.5f;
                }
            }
        }
    }
}
